package com.ts.enterprise.module.user.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ts.enterprise.common.service.CommonService;
import com.ts.enterprise.module.user.entity.WorkerTag;
import com.ts.enterprise.module.user.mapper.WorkerTagMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dean
 * @since 2021-10-18
 */
@Service
public class WorkerTagService extends ServiceImpl<WorkerTagMapper, WorkerTag> {

    @Autowired
    private StringRedisTemplate stringRedisTemplate;

    @Autowired
    private PasswordEncoder passwordEncoder;

    @Autowired
    private CommonService commonService;

    @Autowired
    private LoginService loginService;


    public List<WorkerTag> listByWorkId(Integer workId) {
        return super.list(new LambdaQueryWrapper<WorkerTag>().eq(WorkerTag::getWorkerId, workId));
    }
}
